<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use Carbon\Carbon;

/**
 * Class OrderDetail
 * 
 * @property int $id
 * @property int $order_id
 * @property int $attribute_id
 * @property int $good_id
 * @property string|null $good_name
 * @property int|null $goods_count
 * @property string|null $goods_image
 * @property float $goods_price
 * @property float|null $goods_pay_price
 * @property Carbon|null $create_at
 * @property Carbon|null $update_at
 * @property Carbon|null $delete_at
 *
 * @package App\Models
 */
class OrderDetail extends BaseModels
{
	protected $table = 'zh_order_details';
	public $timestamps = false;

	protected $casts = [
		'order_id' => 'int',
		'good_id' => 'int',
		'goods_count' => 'int',
		'goods_price' => 'float',
		'goods_pay_price' => 'float'
	];

	protected $dates = [
		'create_at',
		'update_at',
		'delete_at'
	];

	protected $fillable = [
		'order_id',
        'attribute_id',
        'attribute_value',
		'good_id',
		'good_name',
		'goods_count',
		'goods_image',
		'goods_price',
		'goods_pay_price',
		'create_at',
		'update_at',
		'delete_at'
	];
}
